package com.itljm.cxrMarket.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.itljm.cxrMarket.entity.HygieneInspectionRecords;
import com.itljm.cxrMarket.service.HygieneInspectionRecordsService;
import com.itljm.cxrMarket.mapper.HygieneInspectionRecordsMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HygieneInspectionRecordsServiceImpl extends ServiceImpl<HygieneInspectionRecordsMapper, HygieneInspectionRecords> implements HygieneInspectionRecordsService{
    @Autowired
    private HygieneInspectionRecordsMapper hygieneInspectionRecordsMapper;

    @Override
    public List<HygieneInspectionRecords> findInspectionRecordsByPage(Page<HygieneInspectionRecords> infoPage, QueryWrapper<HygieneInspectionRecords> wrapper) {
        return hygieneInspectionRecordsMapper.findInspectionRecordsByPage(infoPage,wrapper);
    }

    @Override
    public HygieneInspectionRecords findInspectionRecordsById(String id) {
        return hygieneInspectionRecordsMapper.findInspectionRecordsById(id);
    }
}




